@extends('home.home')
@section('content')
		<div class="product">
			<div class="container">
				<div class="col-md-3 product-price">
					  
				<div class=" rsidebar span_1_of_left">
					<div class="of-left">
						<h3 class="cate">类别</h3>
					</div>
		<ul class="menu">
		<li class="item1"><a href="{{url('/home/good/index')}}/{{1}}">男装 </a>
			<ul class="cute">
				@foreach($list[1] as $v)
				<li class="subitem1"><a href="{{url('/home/good/index')}}/{{$v->tid}}">{{$v->tname}}</a></li>
				@endforeach
			</ul>
		</li>
		<li class="item2"><a href="#">女装 </a>
			<ul class="cute">
				@foreach($list[2] as $v)
				<li class="subitem1"><a href="{{url('/home/good/index')}}/{{$v->tid}}">{{$v->tname}}</a></li>
				@endforeach
			</ul>
		</li>
		<li class="item3"><a href="#">童装</a>
			<ul class="cute">
				@foreach($list[3] as $v)
				<li class="subitem1"><a href="{{url('/home/good/index')}}/{{$v->tid}}">{{$v->tname}}</a></li>
				@endforeach
			</ul>
		</li>
		<li class="item4"><a href="#">其它</a>
			<ul class="cute">
				@foreach($list[12] as $v)
				<li class="subitem1"><a href="{{url('/home/good/index')}}/{{$v->tid}}">{{$v->tname}}</a></li>
				@endforeach
			</ul>
		</li>
				
		<li class="item4"><a href="#">鞋子</a>
			<ul class="cute">
				@foreach($list[13] as $v)
				<li class="subitem1"><a href="{{url('/home/good/index')}}/{{$v->tid}}">{{$v->tname}}</a></li>
				@endforeach
			</ul>
		</li>
	</ul>

					</div>
				<!--initiate accordion-->
		<script type="text/javascript">
			$(function() {
			    var menu_ul = $('.menu > li > ul'),
			           menu_a  = $('.menu > li > a');
			    menu_ul.hide();
			    menu_a.click(function(e) {
			        e.preventDefault();
			        if(!$(this).hasClass('active')) {
			            menu_a.removeClass('active');
			            menu_ul.filter(':visible').slideUp('normal');
			            $(this).addClass('active').next().stop(true,true).slideDown('normal');
			        } else {
			            $(this).removeClass('active');
			            $(this).next().stop(true,true).slideUp('normal');
			        }
			    });
			
			});
		</script>
<!---->
	<div class="product-middle">
		
					<div class="fit-top">
						<h6 class="shop-top">Lorem Ipsum</h6>
						<a href="single.html" class="shop-now">SHOP NOW</a>
<div class="clearfix"> </div>
	</div>
				</div>	 
						<div class="sellers">
							<div class="of-left-in">
								<h3 class="tag">标签</h3>
							</div>
								<div class="tags">
									<ul>
										<li><a href="#">设计</a></li>
										<li><a href="#">时尚</a></li>
										<li><a href="#">流行</a></li>
										<li><a href="#">连衣裙</a></li>
										<li><a href="#">设计</a></li>
										<li><a href="#">时尚</a></li>
										<li><a href="#">流行</a></li>
										<li><a href="#">连衣裙</a></li>
										<li><a href="#">设计</a></li>
										<li><a href="#">时尚</a></li>
										<li><a href="#">流行</a></li>
										<li><a href="#">连衣裙</a></li>
										
										<div class="clearfix"> </div>
									</ul>
								
								</div>
								
		</div>
				<!---->
				<div class="product-bottom">
					<div class="of-left-in">
								<h3 class="best">最畅销</h3>
							</div>
                   @foreach($case as $ww)	
   					<div class="product-go">
						<div class=" fashion-grid">
									<a href="single.html"><img class="img-responsive " src="{{asset($ww->gpic)}}" alt=""></a>
									
								</div>
							<div class=" fashion-grid1">
								<h6 class="best2"><a href="single.html" >{{$ww->gdesc}}</a></h6>
								
								<span class=" price-in1">{{$ww->price}}￥</span>
							</div>
								
							<div class="clearfix"> </div>
					</div>
					@endforeach
					
				</div>
<div class=" per1">
				<a href="single.html" ><img class="img-responsive" src="{{asset('/shop/images/pro.jpg')}}" alt="">
				<div class="six1">
					<h4>DISCOUNT</h4>
					<p>Up to</p>
					<span>60%</span>
				</div></a>
			</div>
				</div>
				<div class="col-md-9 product1">
				<div class=" bottom-product">
				@foreach($data as $row)
					<div class="col-md-4 bottom-cd simpleCart_shelfItem">
						<div class="product-at ">
							<a href="{{ url('/home/good/list')}}/{{ $row -> gid }}"><img class="img-responsive" src="{{asset($row -> gpic)}}" alt="">
							<div class="pro-grid">
										<span class="buy-in">现在购买</span>
							</div>
						</a>	
						</div>
						<p class="tun">{{$row->gname}}</p>
						<a href="{{ url('/home/good/list')}}/{{$row -> gid}}" class="item_add"><p class="number item_price"><i> </i>￥：{{$row -> price}}</p></a>
						<div class="" style="height: 40px;"></div>					
					</div>

				@endforeach

				</div>
				
				</div>
			<nav class="in">
				  <ul class="pagination">
					{{ $data -> appends($request) -> links() }}
				  </ul>
			</nav>
		</div>
		
		</div>
			
				<!---->

<!--//content-->
@endsection
			